﻿using System;

namespace CSSingletonBaseClass
{
    /// <summary>
    /// Excruciatingly simple example usage of the Singleton&lt;T&gt; type.
    /// </summary>
    public class HelloSingleton : Singleton<HelloSingleton>
    {
        public string Message { get; private set; }

        private HelloSingleton()
        {
            Message = "Hello World!";
        }

        public void SayHello()
        {
            Console.WriteLine(Message);
        }
    }
}
